<?php


namespace support\utils;


class WsUtil
{
    static function encode($cmd,$data)
    {
        return json_encode([
            'type'=>$cmd,
            'data'=>$data,
        ]);
    }
}